﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Web;

namespace Model
{

    [MetadataType(typeof(LeaveApplicationType_Metadata))]
    [DisplayName("请假单类型")]
    public partial class LeaveApplicationType
    {
        public LeaveApplicationType()
        {
            this.Id = Guid.NewGuid();
            this.UserId = new Guid(HttpContext.Current.User.Identity.Name);
        }

        public class LeaveApplicationType_Metadata
        {
            [ScaffoldColumn(false)]
            public Guid Id { get; set; }

            [ScaffoldColumn(false)]
            public Guid UserId { get; set; }

            [DisplayName("类型")]
            public object Type { get; set; }

            [DisplayName("说明")]
            public object Note { get; set; }

           
        }
    }
}
